package com.shxc.smarttrade.old.bean;

import java.util.List;

/**
 * Created by jcdev1 on 2017/11/10.
 */

public class AlphaHistoryBean extends ErrorStatus {

    /**
     * page : {"pageSize":10,"currentPage":1,"totalNum":0,"pageNum":null}
     * data : {"historyOrder":[{"ticket":"4224906","openPrice":0.98458,"lever":100,"market":0.97572,"volume":0.01,"symbolCn":"澳元加元","closeTypeName":"手动平仓","symbolEn":"AUDCAD","closeTime":"2017-11-09 20:09:15","cmd":1,"closePrice":0.97572,"openTime":"2017-11-03 12:02:08","profit":6.79},{"ticket":"4224904","openPrice":0.98501,"lever":100,"market":0.98436,"volume":0.01,"symbolCn":"澳元加元","closeTypeName":"手动平仓","symbolEn":"AUDCAD","closeTime":"2017-11-03 17:37:46","cmd":0,"closePrice":0.98436,"openTime":"2017-11-03 11:54:56","profit":-0.51},{"ticket":"4224907","openPrice":0.98441,"lever":100,"market":0.98468,"volume":0.01,"symbolCn":"澳元加元","closeTypeName":"手动平仓","symbolEn":"AUDCAD","closeTime":"2017-11-03 17:37:35","cmd":1,"closePrice":0.98468,"openTime":"2017-11-03 12:05:47","profit":-0.21},{"ticket":"4224908","openPrice":0.98442,"lever":100,"market":0.98469,"volume":0.01,"symbolCn":"澳元加元","closeTypeName":"手动平仓","symbolEn":"AUDCAD","closeTime":"2017-11-03 17:37:30","cmd":1,"closePrice":0.98469,"openTime":"2017-11-03 12:06:52","profit":-0.21},{"ticket":"4224905","openPrice":1276.97,"lever":100,"market":1276.73,"volume":0.01,"symbolCn":"黄金","closeTypeName":"手动平仓","symbolEn":"XAUUSD","closeTime":"2017-11-03 12:13:19","cmd":0,"closePrice":1276.73,"openTime":"2017-11-03 11:56:40","profit":-0.24}]}
     */

    private PageBean page;
    private DataBean data;

    public PageBean getPage() {
        return page;
    }

    public void setPage(PageBean page) {
        this.page = page;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class PageBean {
        /**
         * pageSize : 10
         * currentPage : 1
         * totalNum : 0
         * pageNum : null
         */

        private int pageSize;
        private int currentPage;
        private int totalNum;
        private Object pageNum;

        public int getPageSize() {
            return pageSize;
        }

        public void setPageSize(int pageSize) {
            this.pageSize = pageSize;
        }

        public int getCurrentPage() {
            return currentPage;
        }

        public void setCurrentPage(int currentPage) {
            this.currentPage = currentPage;
        }

        public int getTotalNum() {
            return totalNum;
        }

        public void setTotalNum(int totalNum) {
            this.totalNum = totalNum;
        }

        public Object getPageNum() {
            return pageNum;
        }

        public void setPageNum(Object pageNum) {
            this.pageNum = pageNum;
        }
    }

    public static class DataBean {
        private List<HistoryOrderBean> historyOrder;

        public List<HistoryOrderBean> getHistoryOrder() {
            return historyOrder;
        }

        public void setHistoryOrder(List<HistoryOrderBean> historyOrder) {
            this.historyOrder = historyOrder;
        }

        public static class HistoryOrderBean {
            /**
             * ticket : 4224906
             * openPrice : 0.98458
             * lever : 100
             * market : 0.97572
             * volume : 0.01
             * symbolCn : 澳元加元
             * closeTypeName : 手动平仓
             * symbolEn : AUDCAD
             * closeTime : 2017-11-09 20:09:15
             * cmd : 1
             * closePrice : 0.97572
             * openTime : 2017-11-03 12:02:08
             * profit : 6.79
             */

            private String ticket;
            private double openPrice;
            private int lever;
            private double market;
            private double volume;
            private String symbolCn;
            private String closeTypeName;
            private String symbolEn;
            private String closeTime;
            private int cmd;
            private double closePrice;
            private String openTime;
            private double profit;

            public String getTicket() {
                return ticket;
            }

            public void setTicket(String ticket) {
                this.ticket = ticket;
            }

            public double getOpenPrice() {
                return openPrice;
            }

            public void setOpenPrice(double openPrice) {
                this.openPrice = openPrice;
            }

            public int getLever() {
                return lever;
            }

            public void setLever(int lever) {
                this.lever = lever;
            }

            public double getMarket() {
                return market;
            }

            public void setMarket(double market) {
                this.market = market;
            }

            public double getVolume() {
                return volume;
            }

            public void setVolume(double volume) {
                this.volume = volume;
            }

            public String getSymbolCn() {
                return symbolCn;
            }

            public void setSymbolCn(String symbolCn) {
                this.symbolCn = symbolCn;
            }

            public String getCloseTypeName() {
                return closeTypeName;
            }

            public void setCloseTypeName(String closeTypeName) {
                this.closeTypeName = closeTypeName;
            }

            public String getSymbolEn() {
                return symbolEn;
            }

            public void setSymbolEn(String symbolEn) {
                this.symbolEn = symbolEn;
            }

            public String getCloseTime() {
                return closeTime;
            }

            public void setCloseTime(String closeTime) {
                this.closeTime = closeTime;
            }

            public int getCmd() {
                return cmd;
            }

            public void setCmd(int cmd) {
                this.cmd = cmd;
            }

            public double getClosePrice() {
                return closePrice;
            }

            public void setClosePrice(double closePrice) {
                this.closePrice = closePrice;
            }

            public String getOpenTime() {
                return openTime;
            }

            public void setOpenTime(String openTime) {
                this.openTime = openTime;
            }

            public double getProfit() {
                return profit;
            }

            public void setProfit(double profit) {
                this.profit = profit;
            }
        }
    }
}
